package top.yokey.shopnc.model;

import top.yokey.base.base.BaseHttpClient;
import top.yokey.base.base.BaseHttpListener;

@SuppressWarnings("ALL")
public class MemberPaymentModel {

    private final String ACT = "member_payment";
    private static volatile MemberPaymentModel instance;

    public static MemberPaymentModel get() {
        if (instance == null) {
            synchronized (MemberPaymentModel.class) {
                if (instance == null) {
                    instance = new MemberPaymentModel();
                }
            }
        }
        return instance;
    }

    public void payNew(String paySn, String password, String rcbPay, String pdPay, BaseHttpListener baseHttpListener) {

        BaseHttpClient.get().ready(ACT, "pay_new")
                .add("pay_sn", paySn)
                .add("password", password)
                .add("rcb_pay", rcbPay)
                .add("pd_pay", pdPay)
                .add("payment_code", "alipay")
                .get(baseHttpListener);

    }

}
